import Fruit from "./fruit";

export default class Apple extends Fruit{
    constructor(public name:string,public weight:number,public effect:string){
        super(name,weight,effect);
    }
    NutritionalValue(): void {
        console.log("吃"+this.weight+"公斤"+this.name+this.effect);
    }   
}